//
//  CellOfHotDestinationHead.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/8.
//  Copyright © 2016年 KX. All rights reserved.
//
#import "Masonry.h"
#import "CellOfHotDestinationHead.h"
#import "ModelOfContinents.h"
@implementation CellOfHotDestinationHead
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.label = [[UILabel alloc]init];
        self.labelOfEnname = [[UILabel alloc]init];
        [self addSubview:self.label];
        [self addSubview:self.labelOfEnname];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    [self.labelOfEnname mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.mas_centerY);
        make.height.equalTo(self.mas_height);
        make.left.equalTo(self.mas_left).mas_offset(10);
    }];
    [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.mas_centerY);
        make.height.equalTo(self.mas_height);
        make.right.equalTo(self.mas_right).mas_offset(-10);
    }];
    self.labelOfEnname.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.f];
    self.label.textColor = [UIColor grayColor];
    self.label.font = [UIFont systemFontOfSize:12];
}
- (void)setModel:(ModelOfContinents *)model {

    _model = model;
    self.labelOfEnname.text = [NSString stringWithFormat:@"%@热门目的地",model.cnname];
    self.label.text = @"拼音首字母排序";
}
@end
